package com.annotation.hw.hw1;

/**
 * @author bin
 * @date 2025 - 03 -28
 **/

public class Student {
    private String name;

    @myAnnotaion(19)
    private int age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) throws Exception {
        this.age = MainTest.check(this.getClass(),age);
    }

    public Student() throws Exception {
    }

    public Student(String name, int age) throws Exception {
        this.name = name;
        this.age = MainTest.check(this.getClass(),age);
    }
}
